package com.huangwei.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@Data
@ToString
@ApiModel("用户")
public class User implements Serializable {
    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("联系电话")
    private String phone;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("预约次数")
    private Integer bookCount;
    @ApiModelProperty("平均消费")
    private Double avgCost;
    @ApiModelProperty("用户头像")
    private String imgUrl;
    @ApiModelProperty("驾照")
    private DriverLicense driverLicense;
}
